<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ page import="beans.Agenda" %>
    <%@ page import="beans.Usuario" %>
    <%@ page import="DAO.AgendaDAO" %>
    
    <%
    Usuario usuario = (Usuario) session.getAttribute("usuario");
    //CRIACAO DO NOVO OBJETO AGENDA
    Agenda agenda = new Agenda();
    agenda.setCdUsuario(usuario.getCdUsuario());
    //LENDO INFORMACOES DO FORMULARIO
    agenda.setCdServico(Integer.parseInt(request.getParameter("servico")));
    agenda.setDtAgendamento(request.getParameter("dia") + "-" + request.getParameter("mes"));
    //CARREGAR INFORMACOES NO BANCO
    agenda.agendarServico();
    %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>

</body>
</html>